Skip to content

Refactor the CRS testing tooling a bit: no more macro, retry each task indipendently#534

Merged
dvdplm merged 10 commits into
mainfrom
dvdplm/chore/crs-test-tooling-refactor
May 22, 2026
Merged

Refactor the CRS testing tooling a bit: no more macro, retry each task indipendently#534
dvdplm merged 10 commits into
mainfrom
dvdplm/chore/crs-test-tooling-refactor

Conversation

@dvdplm
Copy link
Copy Markdown
Contributor

@dvdplm dvdplm commented Apr 20, 2026

Salvaged from PR #459

Refactor the CRS testing tooling a bit: no macro, retry each task independently, move helper to common. In short: some TLC for CRS tests.

@dvdplm dvdplm requested a review from a team as a code owner April 20, 2026 10:10
@cla-bot cla-bot Bot added the cla-signed The CLA has been signed. label Apr 20, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 20, 2026

Consolidated Tests Results 2026-05-22 - 07:15:38

Test Results

passed 7 passed

Details

tests 7 tests
clock not captured
tool junit-to-ctrf
build build-and-test arrow-right test-reporter link #2345
pull-request Refactor the CRS testing tooling a bit: no more macro, retry each task indipendently link #534

test-reporter: Run #2345

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
7 7 0 0 0 0 0 not captured

🎉 All tests passed!

Tests

View All Tests
Test Name Status Flaky Duration
k8s_test_crs_uniqueness 42.0s
k8s_test_insecure_keygen_encrypt_and_public_decrypt 1m 57s
k8s_test_insecure_keygen_encrypt_multiple_types 2m 10s
k8s_test_keygen_and_crs 1m 57s
k8s_test_keygen_uniqueness 4m 48s
k8s_test_centralized_insecure 54.7s
nightly_full_gen_tests_default_k8s_centralized_sequential_crs 1.8s

🍂 No flaky tests in this run.

Github Test Reporter by CTRF 💚

🔄 This comment has been updated

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the threshold CRS test tooling by removing the par_poll_responses! macro, introducing a shared polling helper in threshold/common.rs, and updating the CRS tests to poll each (client, request) pair independently with per-attempt timeouts/backoff.

Changes:

  • Replace macro-based polling with poll_with_retries helper.
  • Update CRS generation tests to use slice-based request passing and join_all polling.
  • Reduce CRS polling log noise by downgrading an info to debug.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
core/service/src/client/tests/threshold/crs_gen_tests.rs Switch CRS polling to per-(client,request) retry futures; remove macro usage and adjust request passing.
core/service/src/client/tests/threshold/common.rs Add shared poll_with_retries helper and ProtoRequestId alias; import MAX_TRIES for retry control.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread core/service/src/client/tests/threshold/common.rs
Comment thread core/service/src/client/tests/threshold/crs_gen_tests.rs Outdated
Comment thread core/service/src/client/tests/threshold/common.rs
Comment thread core/service/src/client/tests/threshold/common.rs Outdated
@dvdplm dvdplm self-assigned this May 21, 2026
kc1212
kc1212 previously approved these changes May 21, 2026
Copy link
Copy Markdown
Contributor

@kc1212 kc1212 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small nit, otherwise LGTM!

Comment thread core/service/src/client/tests/threshold/common.rs Outdated
kc1212
kc1212 previously approved these changes May 21, 2026
Copy link
Copy Markdown
Member

@dd23 dd23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx! LGTM

@dvdplm dvdplm merged commit a78ad46 into main May 22, 2026
58 checks passed
@dvdplm dvdplm deleted the dvdplm/chore/crs-test-tooling-refactor branch May 22, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The CLA has been signed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants